package com.lcf.system.dto.user;

import com.lcf.framework.annotation.DictFile;
import com.lcf.system.enums.SysRoleEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户表(User)表实体类
 *
 * @author lcf
 * @since 2025-02-19 13:27:55
 */
@Data
@NoArgsConstructor
public class SysUserDTO {
    //用户名
    @Schema(description = "用户名")
    @NotBlank(message = "用户名不能为空")
    private String username;
    //密码
    @Schema(description = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;
    //姓名
    @Schema(description = "姓名")
    @NotBlank(message = "姓名不能为空")
    private String name;
    //手机号码
    @Schema(description = "手机号码")
    @NotBlank(message = "手机号码不能为空")
    private String mobile;
    //头像
    @Schema(description = "头像")
    @DictFile
    private String headUrl;
    //角色
    @Schema(description = "角色")
    @NotNull(message = "角色不能为空")
    private SysRoleEnum roleCode;
    //租户id
    @Schema(description = "租户id,角色为团长时传入")
    private Long tenantId;
}

